package io.jenkins.plugins.sample;

import hudson.model.Action;

import javax.annotation.CheckForNull;

/**
 * @author chensj
 * @date 2019-11-22 21:32
 */
public class HelloWorldAction implements Action {

    public HelloWorldAction(String name) {
        this.name = name;
    }

    @CheckForNull
    @Override
    public String getIconFileName() {
        return  "document.png";
    }

    @CheckForNull
    @Override
    public String getDisplayName() {
        return "Greeting";
    }

    @CheckForNull
    @Override
    public String getUrlName() {
        return "greeting";
    }

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
